package lab02.test11;

/**
 * Created by admin on 2017/10/19.
 */
public class Rectangle implements Printx {
    double length;
    double width;
    double area;
    double girth;


    @Override
    public void printMyWay() {
        area = length * width;
        girth = (length + width) * 2;
        System.out.println("该矩形的长length=" + length + "宽width=" + width+"面积area="+area+"周长girth="+girth);
    }
}
